package world;

public class Path {

	private Event event1;
	private Event event2;
	boolean active = false;
	
	public Path(Event event1, Event event2){
		
		this.event1 = event1;
		this.event2 = event2;
		
		
		event1.addPath(this);
		event2.addPath(this);
		
		
	}
	
	public Event getOpposite(Event event){
		
		if(event.equals(event1)){
			return event2;
		}else if(event.equals(event2)){
			return event1;
		}else return null;
		
	}

	
	public boolean isActive(){return active;}
	public void setActive(boolean bool){active = bool;}
	
	public Event getEvent1(){return event1;}
	
	public Event getEvent2(){return event2;}
	
	
}
